package com.example.mediatorpattern.entity;

/**
 * @author ash
 * @description
 * @create 2023/2/23  21:32:41
 * @className Colleague
 * @verson 1.0.0
 */
public abstract class Colleague {
    protected Mediator mediator;

    public Colleague(Mediator mediator) {
        this.mediator = mediator;
    }

    public abstract void sendMessage(String message);

    public abstract void notifyMessage(String message);
}
